let cj=19.99
let gender="male"
// let result=((gender=="male"&&cj<20.81)||(gender=="female"&&cj<23.98))?5:0
if((gender=="male"&&cj<20.81)||(gender=="female"&&cj<23.98)){
    result=5
}else{
    result=0
}
console.log(result);